#!/bin/bash

curl -X POST http://localhost:8080 -dgroupId=deployr -dartifactId=deployr -dversion=1.0

deployr update deployr:deployr:1.0 target/deployr-sampleapp-1.0

touch target/deployr-sampleapp-1.0/index.html
deployr update deployr:deployr:1.0 target/deployr-sampleapp-1.0

echo "index.html updated" > target/deployr-sampleapp-1.0/index.html
deployr update deployr:deployr:1.0 target/deployr-sampleapp-1.0
deployr update deployr:deployr:1.0 target/deployr-sampleapp-1.0
deployr update deployr:deployr:1.0 target/deployr-sampleapp-1.0

rm target/deployr-sampleapp-1.0/index.html
deployr update deployr:deployr:1.0 target/deployr-sampleapp-1.0
